
#ifndef _LOG_
#define _LOG_

#include <iostream>
#include <ctime>
#include <string>

using namespace std;

#define debug 0
#define warning 1
#define Test 2

string list_level[3] = {
   "debug",
   "warning",
   "Test"  
};

   ostream&  Log(const char* str, int level)
{
    cout <<  str << " | " << (unsigned)time(0) << " | " << list_level[level] << " ";
    return cout;
}

#endif
